package usts.cs2020.classreportsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import usts.cs2020.classreportsystem.domain.Report;

import java.util.List;

@Mapper
public interface ReportMapper extends BaseMapper<Report> {

    @Select("select * from report where owner_class = #{classCode};")
    List<Report> selectAllByOwnerClassAfter(Integer classCode);

}
